<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<jsp:useBean id="pageBean" scope="request" class="com.agileai.hotweb.domain.PageBean"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>生成线索</title>
<%@include file="/jsp/inc/resource.inc.jsp"%>
<style type="text/css">
.markable0{
	background-color:darkorchid;
	color:black;
}
</style>
<script language="javascript">
var editBox;
function showEditBox(operType){
	clearSelection();
	var handlerId='OrgInfoCreateClueCustomerEdit';
	if (!editBox){
		editBox = new PopupBox('editBox','新增客户',{size:'big',height:'400px',width:'550px',top:'30px'});
	}
	var url = 'index?'+handlerId+'&orgId='+ele('ORG_ID').value;
	editBox.sendRequest(url);
}
var custIdBox;
function openCustIdBox(){
	var handlerId = "CustomerListSelectList"; 
	if (!custIdBox){
		custIdBox = new PopupBox('custIdBox','请选择客户',{size:'big',height:'800px',width:'1000px',top:'2px'});  
	}
	var url = 'index?'+handlerId+'&targetId=CUST_ID&targetName=CUST_ID_NAME';
	custIdBox.sendRequest(url);
} 
</script>
</head>
<body>
<form action="<%=pageBean.getHandlerURL()%>" name="form1" id="form1" method="post">
<%@include file="/jsp/inc/message.inc.jsp"%>
<div id="__ParamBar__" style="float: right;">&nbsp;</div>
<div id="__ToolBar__">
<table border="0" cellpadding="0" cellspacing="1">
<tr>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="doSubmit({actionType:'createClue'})"><input value="&nbsp;" type="button" class="saveImgBtn" id="saveImgBtn" title="保存" />保存</td>
   <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="goToBack();"><input value="&nbsp;" type="button" class="backImgBtn" title="返回" />返回</td>
</tr>
</table>
</div>
<table class="detailTable" cellspacing="0" cellpadding="0">
<tr>
<td width="100" colspan="2" style="text-align: center;height:30px;font-weight: bold;padding-left: 10px;">正在生成线索</td>
</tr>
<tr>
	<th width="100" nowrap>客户名称</th>
	<td><input id="CUST_ID_NAME" label="客户名称" name="CUST_ID_NAME" type="text" value="<%=pageBean.inputValue("CUST_ID_NAME")%>" readonly="readonly" size="24" class="text" />
	<img id="custIdSelectImage" src="images/sta.gif" width="16" height="16" onclick="openCustIdBox()" />
	  <label onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="showEditBox('doCreateClueCustomerAction')"><input value="&nbsp;" type="button" class="editImgBtn" title="新增" />新增</label>
    <input id="CUST_ID" label="客户ID"  name="CUST_ID" type="hidden"	value="<%=pageBean.inputValue("CUST_ID")%>" size="24" class="text" />
	</td>
</tr>
<tr>
	<th width="100" nowrap>联系方式</th>
	<td><input id="CLUE_CONN_WAY" label="联系方式" name="CLUE_CONN_WAY" type="text" value="<%=pageBean.inputValue("CLUE_CONN_WAY")%>" style="width:600px" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>联系人</th>
	<td><input id="CLUE_LIKEMAN_NAME" label="联系人" name="CLUE_LIKEMAN_NAME" type="text" value="<%=pageBean.inputValue("CLUE_LIKEMAN_NAME")%>" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>状态</th>
	<td>
	<input id="CLUE_STATE_TEXT" label="状态" name="CLUE_STATE_TEXT" type="text" value="<%=pageBean.selectedText("CLUE_STATE")%>" size="24"  class="text" readonly="readonly"/>
	<input id="CLUE_STATE" label="状态" name="CLUE_STATE" hidden="hidden" value="<%=pageBean.selectedValue("CLUE_STATE")%>" />
   </td>
</tr>
<tr>
  <th width="100" nowrap>来源方式</th>
  <td><select id="CLUE_SOURCE" label="来源方式" name="CLUE_SOURCE" class="select"><%=pageBean.selectValue("CLUE_SOURCE")%></select>
  </td>
</tr>
<tr>
	<th width="100" nowrap>创建人</th>
	<td><input name="CLUE_CREATE_NAME" type="text" class="text"	id="CLUE_CREATE_NAME"	value="<%=pageBean.inputValue("CLUE_CREATE_NAME")%>" size="24"	readonly="readonly" label="创建人" /> 
		<input id="CLUE_CREATE_MAN" label="创建人"  name="CLUE_CREATE_MAN" type="hidden"	value="<%=pageBean.inputValue("CLUE_CREATE_MAN")%>" size="24" class="text" />
</td>
</tr>
<tr>
	<th width="100" nowrap>创建时间</th>
	<td><input id="CLUE_CREATE_TIME" label="创建时间" name="CLUE_CREATE_TIME" type="text" value="<%=pageBean.inputTime("CLUE_CREATE_TIME")%>" readonly="readonly" size="24" class="text" />
</td>
</tr>

</table>
<input type="hidden" name="actionType" id="actionType" value=""/>
<input type="hidden" name="operaType" id="operaType" value="<%=pageBean.getOperaType()%>"/>
<input type="hidden" id="ORG_ID" name="ORG_ID" value="<%=pageBean.inputValue("ORG_ID")%>" />
</form>
<script language="javascript">
requiredValidator.add("CUST_ID_NAME");
requiredValidator.add("CUST_ID");
requiredValidator.add("CLUE_SOURCE");
initDetailOpertionImage();
</script>
</body>
</html>
<%@include file="/jsp/inc/scripts.inc.jsp"%>
